import { get, post } from '../utils/request';

// 全局配置
export const getMergeConfig = (data?: Recordable) => {
  return post('/api.config/getMergeConfig', data, { loading: false });
};

// 用户登录
export const login = (data?: Recordable) => {
  return post('api.wxapp/session', data, { loading: false });
};

// h5用户登陆
export const userLogin = (data?: Recordable) => {
  return post('api.wechat/wechatLogin', data, { loading: false });
};

// 常见问题

export const business = (data?: Recordable) => {
  return post('api.data/business', data, { loading: true });
};

export default {
  getMergeConfig,
  login,
  business,
  userLogin
}
